package pers.vic.test.activiti;

import org.springframework.context.annotation.Configuration;

/** 
 * @description: 
 * @author: Vic.xu
 * @date: 2020年4月3日 上午9:53:51
 */
@Configuration
public class ActivitiConfig {

	/**
	@Bean
	public ProcessEngineConfiguration config() {
		String jdbcDriver = "com.mysql.cj.jdbc.Driver";
		String jdbcUrl = "jdbc:mysql://localhost:3306/openwebflow?useUnicode=true&characterEncoding=UTF-8&serverTimezone=UTC&nullCatalogMeansCurrent=true";
		String jdbcUsername = "root";
		String jdbcPassword="12122035xx";
		ProcessEngineConfiguration configuration = ProcessEngineConfiguration.createStandaloneProcessEngineConfiguration();
		configuration.setJdbcDriver(jdbcDriver);
		configuration.setJdbcUrl(jdbcUrl);
		configuration.setJdbcUsername(jdbcUsername);
		configuration.setJdbcPassword(jdbcPassword);
		configuration.setDatabaseSchemaUpdate(ProcessEngineConfiguration.DB_SCHEMA_UPDATE_TRUE);
		//ProcessEngine engine = configuration.buildProcessEngine();
		return configuration;
	}
	
	@Bean
	public ProcessEngine engine(ProcessEngineConfiguration configuration) {
		return configuration.buildProcessEngine();
	}
	*/
}
